<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * mstareaofwork.php
 * @author ranuandra
 *
 * 12 Mar 2012 10:37:01
 *
 * 
 */
class Model_Mstareaofwork extends ORM
{
	
	private $_field = array('areaofwork', 'flag');
	private $_form = array('areaofwork' => '', 'flag' => '1');
	
	public function roles()
	{
		return array(
			'areaofwork' => array(
							array('min_length', array(':value', 0)),
						),
			'flag' => array(
							array('min_length', array(':value', 0)),
						),
		
		); 
	}
	
	public function getField()
	{
		return $this->_field;
	}
	
	public function getForm()
	{
		return $this->_form;
	}
	
	public function create_data($values)
	{
	    return $this->values($values, $this->_field)->create();
	}
}